package models

import (
	"time"

	"gorm.io/gorm"
)

type Picture struct {
	ID           uint           `json:"id" gorm:"primaryKey"`
	Filename     string         `json:"filename" gorm:"not null"`
	OriginalName string         `json:"original_name"`
	FilePath     string         `json:"file_path" gorm:"not null"`
	ItemID       uint           `json:"item_id"`
	Item         Item           `json:"item" gorm:"foreignKey:ItemID"`
	CreatedAt    time.Time      `json:"created_at"`
	UpdatedAt    time.Time      `json:"updated_at"`
	DeletedAt    gorm.DeletedAt `json:"-" gorm:"index"`
}
